package com.szpx.service.impl;

import com.szpx.entity.FilmInformation;
import com.szpx.mapper.FilmInformationMapper;
import com.szpx.service.FilmInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class FilmInformationServiceImpl implements FilmInformationService {

    @Autowired
    private FilmInformationMapper filmInformationMapper;

    @Override
    public FilmInformation selectFinformationmById(Integer id) {
        return filmInformationMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<FilmInformation> getListByMation(FilmInformation filmInformation) {
        return filmInformationMapper.getListByMation( filmInformation);
    }
}
